using I2.Loc;
using UnityEngine;

public class LoadPurchasesBlockScreen : MonoBehaviour
{
	public GameObject Button;

	public GameObject LoadAnimation;

	public UILabel textLable;

	public void ShowLoad()
	{
		if (Button != null && LoadAnimation != null && textLable != null)
		{
			base.gameObject.SetActive(true);
			Button.SetActive(false);
			LoadAnimation.SetActive(true);
			textLable.text = LocalizationManager.GetTermTranslation("Game_Common/restoring_purchases");
			Invoke("ShowEnd", 15f);
		}
	}

	public void ShowEnd(string status)
	{
		if (Button != null && LoadAnimation != null && textLable != null)
		{
			base.gameObject.SetActive(true);
			Button.SetActive(true);
			LoadAnimation.SetActive(false);
			textLable.text = status;
		}
	}

	public void OnClickHandler()
	{
		base.gameObject.SetActive(false);
	}
}
